//
//  QHBasicViewController.h


#import <UIKit/UIKit.h>

@interface QHBasicViewController : UIViewController

@property (nonatomic, strong) UIImageView *statusBarView;
@property (nonatomic, strong) UIView *navView;
@property (nonatomic, assign, readonly) int nMutiple;
@property (nonatomic, strong) NSArray *arParams;

@property (nonatomic, strong) UIView *leftV;
@property (nonatomic, strong) UIView *centerV;
@property (nonatomic, strong) UIView *rightV;
@property (nonatomic, strong) UILabel *titleLab;


- (id)initWithFrame:(CGRect)frame param:(NSArray *)arParams;

- (void)createNavWithTitle:(NSString *)szTitle createMenuItem:(UIView *(^)(int nIndex))menuItem;
- (void)createNavWithTitleSub:(NSString *)szTitle subtitle:(NSString*)subTitle createMenuItem:(UIView *(^)(int nIndex))menuItem;
- (void)reloadImage;

- (void)reloadImage:(NSNotificationCenter *)notif;

- (void)subReloadImage;

- (void)addObserver;

- (void)showHudWithText:(NSString *)text justText:(BOOL)b autoHide:(BOOL)a;
- (void)showDoneHudWithText:(NSString *)text autoHide:(BOOL)a;
- (void)hideHud;
- (void)waitForTwoSeconds;

-(void)showAlertWithContent:(NSString *)c;
-(void)showAlertWithTitle:(NSString *)t andContent:(NSString *)c;
-(void)showAlertWithTitle:(NSString *)t andContent:(NSString *)c cancelable:(BOOL)b;
@end

